<% if @children.nil? || @children.empty? %>

<%= select("post", "post_category_id", @first_cat_children)%>
<% else%>
<%= select("post", "post_category_id", @children)%>

<% end %>